<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>店+发券管理</title>
		<link rel="stylesheet" href="css/reset.css" />
        <link rel="stylesheet" href="css/table.css" />
        <link rel="stylesheet" href="css/platform.css"/>
        <link rel="stylesheet" href="js/ui/jquery-ui.min.css"/>
		<link rel="stylesheet" href="js/vendor/magicsuggest/magicsuggest-min.css"/>
	</head>
	<body ms-controller="coupon">
        <p class="u-title">验券统计</p>
        <div class="u-multiform">
            <div class="column">
                <div class="cell">
                    <label>大区名称：</label>
                    <div class="cnt-box cnt-combox">
                        <input id="magicRegion" type="text"/>
                    </div>
                </div>
                <div class="cell">
                    <label>门店名称：</label>
                    <div class="cnt-box cnt-combox">
                        <input id="magicShop" type="text"/>
                    </div>
                </div>
            </div>
            <div class="column">
                <div class="cell">
                    <label>活动名称：</label>
                    <input class="u-ipt" ms-duplex="param.activityName">
                </div>
                <div class="cell">
                    <label>验券时间：</label>
                    <div class="cnt-box">
                        <input class="u-ipt ipt-timepicker" type="text" id="timepickerStart" placeholder="开始时间" ms-duplex="param.startTime">
                        <span class="split">-</span>
                        <input class="u-ipt ipt-timepicker" type="text" id="timepickerEnd" placeholder="结束时间" ms-duplex="param.endTime">
                    </div>
                </div>
            </div>
            <div class="column btn-box">
                <div class="cell">
                    <label></label>
                    <div class="cnt-box">
                        <button class="u-btn small" ms-click="param.search">查询</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="u-topBtn">
            <button class="u-btn small gray" ms-click="checkword">导出</button>
        </div>
        <div calss="tableContent">
            <div id="couponTb" ms-controller="couponTb"></div>
        </div>
        
        <div class="u-headTip"><p></p></div>
        
        <script type="avalon" id="couponTbTemplate">
            <div class="tableWrapper">
                <table class="table">
                    <thead>
                        <tr>
                            <th>活动名称</th>
                            <th>大区名称</th>
                            <th>门店名称</th>
                            <th>验券数量</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ms-repeat-row="sources">
                            <td>{{row.activityName}}</td>
                            <td>{{row.regionName}}</td>
                            <td>{{row.storeName}}</td>
                            <td>{{row.couponAmount}}</td>
                        </tr>
                    </tbody>
                    <tfoot>
                        <tr>
                            <td colspan="11">
                                <div class="pager">
                                    <div class="first-page" ms-click="firstpage" ms-class={{firstpagestyle}}>首页</div>
                                    <div class="pre-page" ms-click="prepage" ms-class={{prepagestyle}}>上一页</div>
                                    <div class="current-page">第<input class="current-page-num" type="text" ms-duplex="currentpage" ms-input="jumppage"/>页
                                        <span class="totalpage">共 {{totalpage}} 页</span>
                                    </div>
                                    <div class="next-page" ms-click="nextpage" ms-class={{nextpagestyle}}>下一页</div>
                                    <div class="last-page" ms-click="lastpage" ms-class={{lastpagestyle}}>尾页</div>
                                    <!--
									<div class="pageRowsConfig" ms-if="isshowRowsList"><span class="configTxt">每页</span><select class="rowsConfig" ms-duplex="peerpagerows" ms-change="refresh"><option ms-repeat-options="rowsConfigList">{{options}}</option></select> <span class="configTxt">行</span></div>
                                    <div class="messageinfo">{{startrow}}-{{endrow}} 共{{total}}条</div>
                                	-->
								</div>
                            </td>
                        </tr>
                    </tfoot>
                </table>
            </div>
        </script>
        
        <script src="oldjs/jquery.min.js"></script>
        <script src="oldjs/avalon.shim.sn.js"></script>
        <script src="oldjs/ui/jquery-ui.min.js"></script>
        <script src="oldjs/ui/jquery-ui-timepicker-addon.js"></script>
		<script src="js/vendor/magicsuggest/magicsuggest-min.js"></script>
        <script src="oldjs/swift-ui-table-1.1.js"></script>
        <script src="oldjs/platform.js"></script>
        <script src="js/DataInterface/DataInterface.js"></script>
        <script src="js/page/validateCouponStat.js"></script>
        
</html>
